package com.example.xxpk.bo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDate;

// 封装每日签到记录及奖励信息的实体类
@Data
public class DailySignInRecord {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("签到奖励id")
    @TableId(value = "sgin_in_rewards_id", type = IdType.AUTO)
    private Integer sginInRewardsId;

    @ApiModelProperty("奖励类型(1金币,2道具,3宝箱,4超级宝箱,5人物,6飞剑)")
    private String rewardType;

    @ApiModelProperty("奖励id，对于道具、人物等需要id，对于钻石、宝箱等可空")
    private Integer rewardId;

    @ApiModelProperty("奖励数量")
    private Integer rewardCount;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty("日期")
    private LocalDate date;

    @ApiModelProperty("签到信息")
    private String information;

    @TableField(exist = false) //该字段在数据库表中不存在
    @ApiModelProperty("签到状态")
    private String status; //签到状态 canSign -可签到 signedIn-已签到 canMakeUp-可补签 NotArrived-未到达日期(不能签到或补签)


}
